package com.sgb.kjwl.view.widget.transport;

import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.widget.TextView;

import androidx.annotation.NonNull;

import com.sgb.kjwl.R;

import org.jetbrains.annotations.NotNull;

/**
 * Describe:    添加自营司机帮助弹窗
 * Author:  yangLei
 * Date:    2021/10/12
 */
public class AddDriverHelpDialog extends Dialog {
    private TextView iKnown;

    private AddDriverHelpDialog(@NonNull @NotNull Context context) {
        super(context, R.style.app_transparent_dialog);
    }

    public static AddDriverHelpDialog newInstance(Context context) {
        return new AddDriverHelpDialog(context);
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.app_add_proprietary_driver_help_dialog);
        iKnown = findViewById(R.id.i_known);
        iKnown.setOnClickListener(v -> dismiss());
        setCanceledOnTouchOutside(false);
    }
}
